stylecontext: Use our own color resolve function
authorBenjamin Otte <otte@redhat.com>
Wed, 11 Jan 2012 02:04:00 +0000 (03:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 11 Jan 2012 14:48:54 +0000 (15:48 +0100)
... instead of using the StyleProperties.

gtk/gtkstylecontext.c

index 5f7d644d021b91652c52aed8b78286fe6e9e0c85..0b25a3277e1176490c483b9bd469fedbf4f314da 100644 (file)
@@ -2391,7 +2391,7 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context,
                   else
                     g_value_init (&pcache->value, GDK_TYPE_COLOR);
 
-                  if (gtk_symbolic_color_resolve (color, data->store, &rgba))
+                  if (_gtk_style_context_resolve_color (context, color, &rgba))
                     {
                       if (G_PARAM_SPEC_VALUE_TYPE (pspec) == GDK_TYPE_RGBA)
                         g_value_set_boxed (&pcache->value, &rgba);